package com.partners.constant;

/**
 * @author liangyongle
 * @date 2018/8/14 0014
 */
public enum ErrorMessageEnum implements BusinessMessage {
    /** 内部未知错误 */
    SERVER_INTERNAL_ERROR(-1000, "服务器内部错误"),
    ERROR_JSON_INPUT(-10001, "JSON输入格式有误"),
    ERROR_REQUEST_METHOD(-10002, "错误的请求方式"),
    OPERATION_ERROR(-10003, "错误的请求方式"),
    LOGIN_EXPIRE(-10004, "登录过期"),

    PARAMETER_ERROR(-10005, "参数错误"),
    FANS_NOT_FOUND(-10006, "该粉丝不存在"),
    HTTP_BAD_REQUEST(-10007, "请求地址失败"),
    OPERATION_FAILURE(-10008, "操作失败"),
    CODE_NOT_FOUND(-10009, "code参数缺失"),
    USER_CHECK_FAILED(-10010,"用户验证失败"),
    QRCODE_ERROR(-10011,"二维码生成失败"),



    //客户报错信息
    CUSTOMER_NOT_FOUND(-10004, "该客户不存在"),
    CREATE_FALSE(-100012, "人脸识别失败"),
    CREATE_QRCODE_FALSE(-100013, "获取tiket失败"),
    HOST_CONNECT_FALSE(-100014, "主机连接失败"),
    USER_IS_REGISTER(-100015, "您已经注册过了"),
    NAME_IS_EXIST(-100016, "名字不能重复"),
    RECORD_NOT_FOUND(-100017, "记录不存在"),
    RECORD_IS_EXIST(-100018, "记录已存在"),
    LOGIN_ERROR(-100019, "登录失败"),
    HANDLE_NOT_FOUNT(-100020, "无操作权限"),
    USER_NOT_EXIST(-100021, "用户不存在"),
    TOKEN_NOT_FOUND(-100022, "token参数缺失"),
    TOKEN_IS_OVERTIME(-100023, "token已过期"),



    ID_NOT_FOUND(-100029, "id参数缺失"),
    TITLE_NOT_FOUND(-100030, "标题参数缺失"),
    CLASS_NOT_FOUND(-100031, "分类Id参数缺失"),
    PIC_NOT_FOUND(-100032, "图片参数缺失"),
    CODE_IS_SEND(-100033, "验证码已发送"),
    POINT_NOT_FOUND(-100034, "积分值参数缺失"),
    STOCK_NOT_FOUND(-100035, "库存参数缺失"),
    CONTENT_NOT_FOUND(-100036, "详情参数缺失"),
    NAME_NOT_FOUND(-100037, "名字参数缺失"),
    PHONE_NOT_FOUND(-100038, "手机号码参数缺失"),
    CODE_SENDED_ERROR(-100039, "发送失败"),
    CODE_OVER_TIME(-100040, "验证码已过期"),
    UID_NOT_FOUND(-100041, "uid参数缺失"),
    PHONE_IS_EXIST(-100042, "该电话号码已被注册"),
    CUSTOMERID_NOT_FOUND(-100043, "客户id缺失"),
    CUSTOMER_IS_TIMEOVER(-100044, "该报备客户已过期"),
    TOTALMONEY_NOT_FOUND(-100045, "订单总价格参数缺失"),
    ORDER_IS_EXIST(-100046, "该客户已提交过订单"),
    ORDER_NOTE_FOUND(-100047, "该订单不存在"),
    PID_NOT_FOND(-100048, "推荐人id不存在"),
    PRICE_NOT_FOUND(-100049, "价格参数缺失"),
    USER_IS_JOIN(-100050, "用户已经加入其它分组"),
    GROUPID_NOT_FOUND(-100051, "分组ID参数缺失"),
    USERID_NOT_FOUND(-100052, "用户ID参数缺失"),
    UP_NOT_FOUND(-100053, "产品下架状态参数缺失"),
    PRODUCT_NOT_FOUND(-100054, "产品不存在"),
    UP_VALUE_ERROR(-100055, "状态只能是0和1"),
    PRODUCTID_NOT_FOUND(-100056, "产品id参数缺失"),
    STOCK_NOT_ENOUGH(-100057, "产品库存不足"),
    PRODUCT_IS_DOWN(-100058, "产品已下架"),
    POINT_NOT_ENOUGH(-100059, "积分不足"),
    ADDRESS_NOT_FOUND(-100060, "收货地址缺失"),
    EXCHANGE_IS_OVER(-100061,"不在核销或者发货状态"),
    EXCHANGE_IS_FINISH(-100062,"已经兑换过"),
    TEMPLATE_SEND_ERROR(-100063,"模板发送失败"),
    TASK_NOT_FOUND(-100064,"任务不存在"),
    TASK_IS_OVERTIME(-100065,"任务已过期"),

    ORDER_IS_PAYED(-100067,"订单已支付"),
    ORDER_PAY_ERROR(-100068,"订单支付失败"),
    MONEY_NOTENOUGH(-100069,"帐号余额不足，请到商户平台充值后再重试"),
    CODE_IS_ERROR(-100070,"验证码错误"),
    TYPE_IS_ERROR(-100071,"类型参数缺失"),
    AUTH_NOT_ENOUTH(-100072,"产品权限不足"),
    REFUND_FAILURE(-100073 , "退款失败"),
    ADDUSER_NOT_FOUND(-100074 , "添加人不存在"),
    ROLE_HAS_USER(-100075 , "该角色下还有员工，不能删除"),
    ROLE_NOT_FOUND(-100076 , "该角色不存在"),
    NEWS_SEND_ERROR(-100078 , "发送失败"),
    COUPON_IS_GET(-100079 , "你已经领取过"),
    COUPON_NOT_FOUND(-10080, "该优惠券不存在"),
    COUPON_IS_USERED(-10081, "该优惠券已被使用"),
    COUPON_IS_OVER(-10082, "该优惠券已过期"),
    MONEY_NOT_ENOUTH(-10083, "金额不满足条件"),
    SALEMONEY_NOT_FOUND(-10084, "消费金额参数缺失"),

























    ;

    /**  编号 */
    private Integer code;

    /**  信息 */
    private String msg;

    ErrorMessageEnum(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    @Override
    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    @Override
    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
